<?php

namespace App\RBAC;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    protected $fillable = [
        'name', 'description',
    ];

    public function operations()
    {
        return $this->belongsToMany('App\RBAC\Operation','role_operations');
    }

         /**
     * Get the role for the user.
     */
    public function users()
    {
        return $this->hasMany('App\User');
    }
}
